package com.boarsoft.boar.message.biz;

import java.util.List;

import com.boarsoft.boar.message.entity.RecipientQueueEntity;
import com.boarsoft.common.dao.PagedResult;

public interface RecipientQueueBiz {

	/**
	 * 查询收件人队列
	 * 
	 * @param catalog
	 * @param key
	 * @param orderBy
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PagedResult<RecipientQueueEntity> list(String catalog, String key, String orderBy, int pageNo, int pageSize);

	/**
	 * 没有找到匹配数据，插入数据
	 * 
	 * @param os
	 */
	void save(List<RecipientQueueEntity> os);

	void save(RecipientQueueEntity o);

	/**
	 * 删除收件人队列
	 * 
	 * @param id
	 * @return
	 */
	RecipientQueueEntity delete(String id);

	/**
	 * 获取收件人列表
	 * 
	 * @param id
	 * @return
	 */
	RecipientQueueEntity get(String id);

	/**
	 * 
	 * @param o
	 */
	void update(RecipientQueueEntity o);

	List<RecipientQueueEntity> list();
}
